package com.zwps.common.controller.constant;

import java.util.Map;

public class SwaggerConstant {

    public static final String ANT_PATH_WEBJARS = "/webjars/**";

    public static final String ANT_PATH_DOC_HTML = "/doc.html";

    public static final String ANT_PATH_SWAGGER_UI_HTML = "/swagger-ui.html";

    public static final String ANT_PATH_V3_API_DOC = "/v3/api-docs/**";

    public static void addSwaggerFilterUrl(Map<String, String> map) {
        map.put(ANT_PATH_DOC_HTML, ShiroConstant.FILTER_NAME_ANON);
        map.put(ANT_PATH_WEBJARS, ShiroConstant.FILTER_NAME_ANON);
        map.put(ANT_PATH_V3_API_DOC, ShiroConstant.FILTER_NAME_ANON);
        map.put(ANT_PATH_SWAGGER_UI_HTML, ShiroConstant.FILTER_NAME_ANON);
        map.put("/swagger-ui/**", ShiroConstant.FILTER_NAME_ANON);
    }
}
